package priv.pront.code.robot.roboCom_pri_2021.zhi;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.StreamTokenizer;

/**
 * @Description:
 * @Author: pront
 * @Time:2023-07-09 17:54
 */
public class 人脸识别 {

    static StreamTokenizer st = new StreamTokenizer(new BufferedReader(new InputStreamReader(System.in)));
    static int a,b, c, t, e, f, g;
    public static void main(String[] args) throws IOException {
        st.nextToken();
        a = (int) st.nval;
        st.nextToken();
        b = (int) st.nval;
        st.nextToken();
        c = (int) st.nval;
        st.nextToken();
        t = (int) st.nval;
        st.nextToken();
        e = (int) st.nval;
        st.nextToken();
        f = (int) st.nval;
        st.nextToken();
        g = (int) st.nval;

        int d0 = a - e;
        int d1 = b - f;
        int d3 = c - g;
        System.out.println("Diff = " + d0 + "," + d1 + " ," + d3);
        if(Math.abs(d0) + Math.abs(d1) + Math.abs(d3) <= t){
            System.out.println("yes");
        }else{
            System.out.println("No");
        }


    }
}
